package cn.snowheart.ssm.service.impl;

import cn.snowheart.ssm.mapper.DepartmentMapper;
import cn.snowheart.ssm.pojo.Department;
import cn.snowheart.ssm.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author liuwanxiang
 * @version 2018/4/22
 */
@Component
public class DepartmentServiceImpl implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> list() {
        return departmentMapper.selectByExample(null);
    }
}
